package com.basic.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.basic.backend.model.dto.analysis.AnalysisStatsDTO;
import com.basic.backend.model.entity.AnalysisResult;
import org.apache.ibatis.annotations.Select;

public interface AnalysisService extends IService<AnalysisResult> {
    // 新增统计方法
    AnalysisStatsDTO getAnalysisStats();


    @Select("SELECT COUNT(DISTINCT article_id) FROM analysis_result")
    Long countAnalyzedArticles();

}